Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for managing token family key pattern #194

Merged
merged 13 commits into from
Sep 5, 2024

Conversation

qrtp
Copy link
Collaborator

@qrtp qrtp commented Aug 30, 2024

WIP

Posted JSON

When setting a FARMS token, two records are requested to be set:

  • token.EVM.MATIC.FARMS.address - for backwards compat
  • token.EVM.MATIC.FARMS.address - for new format
{
    "@type": "unstoppabledomains.com/partner.v3.DomainOperationResult",
    "operation": {
        "@type": "unstoppabledomains.com/partner.v3.Operation",
        "id": "op-a236a264-51ea-4b60-ba57-4b11519ccc51",
        "type": "DOMAIN_UPDATE",
        "status": "SIGNATURE_REQUIRED",
        "domain": "aaron.x",
        "lastUpdatedTimestamp": 1725022823658,
        "dependencies": [
            {
                "@type": "unstoppabledomains.com/partner.v3.BlockchainOperation",
                "id": "bc-67559e89-34c3-40e9-80f6-3e7436585106",
                "status": "SIGNATURE_REQUIRED",
                "transaction": {
                    "messageToSign": "0xf0098c873ada15ca1bae819b1de211236ec22262e1f1624678aa1635220c2408",
                    "blockchain": "MATIC"
                },
                "type": "UPDATE_RECORDS",
                "parameters": {
                    "recordUpdates": {
                        "token.EVM.MATIC.FARMS.address": "0xCD0DAdAb45bAF9a06ce1279D1342EcC3F44845af",
                        "crypto.FARMS.version.MATIC.address": "0xCD0DAdAb45bAF9a06ce1279D1342EcC3F44845af"
                    },
                    "resetRecords": false
                }
            }
        ]
    }
}

Both records shown in public API response

Requesting https://api.ud-staging.com/profile/public/aaron.x?fields=records

image

Resulting record show on UI

Single chain

image

Ether as a hybrid multichain (legacy token + new token family records)

image

@qrtp
Copy link
Collaborator Author

qrtp commented Aug 30, 2024

/gcbrun

Copy link

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author

qrtp commented Aug 30, 2024

/gcbrun

Copy link

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author

qrtp commented Aug 31, 2024

/gcbrun

Copy link

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author

qrtp commented Aug 31, 2024

/gcbrun

@qrtp
Copy link
Collaborator Author

qrtp commented Aug 31, 2024

/gcbrun

@qrtp
Copy link
Collaborator Author

qrtp commented Sep 2, 2024

/gcbrun

Copy link

github-actions bot commented Sep 2, 2024

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author

qrtp commented Sep 3, 2024

/gcbrun

Copy link

github-actions bot commented Sep 3, 2024

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author

qrtp commented Sep 5, 2024

/gcbrun

Copy link

github-actions bot commented Sep 5, 2024

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp
Copy link
Collaborator Author

qrtp commented Sep 5, 2024

/gcbrun

Copy link

github-actions bot commented Sep 5, 2024

🎉 All your tests were successful!

We detected changes in the following:

  • UD.me frontend
  • Shared packages

@qrtp qrtp merged commit 32e66c8 into main Sep 5, 2024
2 checks passed
@qrtp qrtp deleted the qrtp/token-family-support branch September 5, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant